﻿namespace Pub.Class
{
    using System;
    using System.Runtime.InteropServices;

    public interface ISerialize
    {
        T DecodeDeserialize<T>(string data, string key = "");
        T Deserialize<T>(string data);
        T DeserializeFile<T>(string fileName);
        string Serialize(object o);
        string SerializeEncode(object o, string key = "");
        void SerializeFile(object o, string fileName);
    }
}

